package com.mfm.controller;

/**
 * @Auther: MFM
 * @Date: 2022/8/2 - 08 - 02 - 21:24
 * @version: 1.0
 * 业务异常
 */

public class BusinessException extends RuntimeException {
    private Integer code;

    public BusinessException(Integer code) {
        this.code = code;
    }

    public BusinessException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
